package com.yun.feign.article;

import com.heima.model.article.dtos.ApArticleDTO;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description:
 * @author: yu
 * @data 2025年09月10日 15:22
 */
@FeignClient(value = "article-service"/*, fallback = ArticleClientImpl.class*/)
public interface ArticleClient {

    @PostMapping("/api/v1/article/save")
    ResponseResult insert(@RequestBody ApArticleDTO apArticleDTO);
}

